#include <LinearConstraint.h>
Public Member Functions | |
| LinearConstraint () | |
| virtual void | setTexrep (const float w, const float h) |
| virtual void | setVertices (osg::Vec3Array *lp, const float width) |
| virtual osg::Geometry * | makeGeometry (const osg::Vec3Array *points) |
| osg::Vec3Array * | getNormals (const osg::Vec3Array *points) |
| virtual osg::DrawArrays * | makeRoad () const |
| virtual osg::Vec3Array * | getRoadVertices () const |
| virtual osg::Vec2Array * | getRoadTexcoords (const osg::Vec3Array *points) |
| virtual osg::Vec3Array * | getRoadNormals (const osg::Vec3Array *points) const |
| void | setTexture (const char *tx) |
Protected Attributes | |
| osg::ref_ptr< osg::Vec2Array > | _tcoords |
| osg::ref_ptr< osg::Vec3Array > | _edgecoords |
| float | txxrepAlong |
| float | txyrepAcross |
| std::string | texture |
| float | width |
| osg::ref_ptr< osg::Vec3Array > | _midline |
Definition at line 7 of file LinearConstraint.h.
|
|
Definition at line 10 of file LinearConstraint.h. |
|
|
return normals array - flat shaded Definition at line 102 of file LinearConstraint.cpp. Referenced by makeGeometry(). |
|
|
Definition at line 9 of file LinearConstraint.cpp. References _midline. |
|
|
Definition at line 50 of file LinearConstraint.cpp. References _edgecoords, and _tcoords. Referenced by makeGeometry(). |
|
|
Definition at line 29 of file LinearConstraint.cpp. References _midline. |
|
|
return a geometry that fills the constraint. Definition at line 115 of file LinearConstraint.cpp. References _midline, getNormals(), getRoadTexcoords(), and texture. |
|
|
Roads apply a texture proportional to length along the road line. Definition at line 3 of file LinearConstraint.cpp. References _midline. |
|
||||||||||||
|
Texture repeat distance across linear (often equal to width) and along its length Definition at line 15 of file LinearConstraint.h. References txxrepAlong, and txyrepAcross. |
|
|
Geometry will return with this texture applied: Definition at line 44 of file LinearConstraint.h. References texture. |
|
||||||||||||
|
generate constant width around line - creates the area to be cut into the terrain. Definition at line 148 of file LinearConstraint.cpp. References _edgecoords, _midline, and _tcoords. |
|
|
Definition at line 49 of file LinearConstraint.h. Referenced by getRoadTexcoords(), and setVertices(). |
|
|
defines the midline of a road, rail etc Definition at line 59 of file LinearConstraint.h. Referenced by getRoadNormals(), getRoadVertices(), makeGeometry(), makeRoad(), and setVertices(). |
|
|
Definition at line 48 of file LinearConstraint.h. Referenced by getRoadTexcoords(), and setVertices(). |
|
|
Definition at line 51 of file LinearConstraint.h. Referenced by makeGeometry(), and setTexture(). |
|
|
Definition at line 50 of file LinearConstraint.h. Referenced by setTexrep(). |
|
|
Definition at line 50 of file LinearConstraint.h. Referenced by setTexrep(). |
|
|
width of a linear feature Definition at line 55 of file LinearConstraint.h. |
1.4.6-NO